package com.demo.test.server.rpc.client.impl;

import com.demo.test.server.rpc.client.ClientInterface;
import one.bugu.zookeeper.rpc.framework.annotations.RpcClient;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: LangK
 * Created Date 2019/2/12
 * Time: 17:55
 * Description:
 */
@Component
@RpcClient(serverName = "server")
public class ClientInterfaceImpl implements ClientInterface {

    public ClientInterfaceImpl() {
    }

    public String test(String param) {
        return "fail";
    }

    public int test() {
        return 1;
    }
}
